## JORGE FERNANDO GOMEZ
## 1259371
## 189631
## LEC A1
## MARTIN MÜLLER
## D02
## YANG LIU

lander: lander.o util.o hash.o gamestate.o keyboardagent.o \
	read.o 
	gcc -o lander lander.o gamestate.o keyboardagent.o util.o hash.o \
		read.o -lcurses -lm

lander.o: lander.c util.h hash.h gamestate.h keyboardagent.h \
	util.h read.h
	gcc -g -Wall -std=c99 -c lander.c

gamestate.o: gamestate.c gamestate.h hash.h keyboardagent.h util.h
	gcc -g -Wall -std=c99 -c gamestate.c

keyboardagent.o: keyboardagent.c keyboardagent.h gamestate.h util.h hash.h
	gcc -g -Wall -std=c99 -c keyboardagent.c

util.o: util.c util.h hash.h gamestate.h
	gcc -g -Wall -std=c99 -c util.c

hash.o: hash.c hash.h util.h
	gcc -g -Wall -std=c99 -c hash.c

read.o: read.c read.h util.h
	gcc -g -Wall -std=c99 -c read.c


.PHONY : clean tar

clean:
	-rm *.o lander core

tar:
	tar cvf submit.tar \
		lander.c \
		gamestate.c gamestate.h \
		keyboardagent.c keyboardagent.h \
		util.c util.h \
		hash.c hash.h \
		read.c read.h \
		README \
		Makefile landscape.txt
